﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Admin2505.Iinfrastructure.Migrations
{
    /// <inheritdoc />
    public partial class InitialCreate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "AppRolePermission",
                keyColumn: "Id",
                keyValue: new Guid("27a45169-1997-4e32-a54c-b9bb14cfba18"));

            migrationBuilder.DeleteData(
                table: "AppRolePermission",
                keyColumn: "Id",
                keyValue: new Guid("fa40d77c-715e-4440-8342-76e9eb3a537d"));

            migrationBuilder.DeleteData(
                table: "AppUserRole",
                keyColumn: "Id",
                keyValue: new Guid("a419d959-5a16-4327-b652-0ffeb6725e9b"));

            migrationBuilder.InsertData(
                table: "AppRolePermission",
                columns: new[] { "Id", "CreatedAt", "CreatedBy", "DisplayOrder", "IsActived", "IsDelete", "PermissionId", "Remarks", "RoleId", "UpdatedAt", "UpdatedBy" },
                values: new object[,]
                {
                    { new Guid("9bf5527a-aeaf-4fd1-92d4-77a116002d96"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, new Guid("00000000-0000-0000-0000-000000000004"), "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("d91f93be-a5ec-4e43-9af8-07b2f06892f8"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, new Guid("00000000-0000-0000-0000-000000000003"), "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000") }
                });

            migrationBuilder.InsertData(
                table: "AppUserRole",
                columns: new[] { "Id", "CreatedAt", "CreatedBy", "DisplayOrder", "IsActived", "IsDelete", "Remarks", "RoleId", "UpdatedAt", "UpdatedBy", "UserId" },
                values: new object[] { new Guid("68259246-c732-46fc-be16-e2bcfeb9f5a3"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), new Guid("00000000-0000-0000-0000-000000000001") });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "AppRolePermission",
                keyColumn: "Id",
                keyValue: new Guid("9bf5527a-aeaf-4fd1-92d4-77a116002d96"));

            migrationBuilder.DeleteData(
                table: "AppRolePermission",
                keyColumn: "Id",
                keyValue: new Guid("d91f93be-a5ec-4e43-9af8-07b2f06892f8"));

            migrationBuilder.DeleteData(
                table: "AppUserRole",
                keyColumn: "Id",
                keyValue: new Guid("68259246-c732-46fc-be16-e2bcfeb9f5a3"));

            migrationBuilder.InsertData(
                table: "AppRolePermission",
                columns: new[] { "Id", "CreatedAt", "CreatedBy", "DisplayOrder", "IsActived", "IsDelete", "PermissionId", "Remarks", "RoleId", "UpdatedAt", "UpdatedBy" },
                values: new object[,]
                {
                    { new Guid("27a45169-1997-4e32-a54c-b9bb14cfba18"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, new Guid("00000000-0000-0000-0000-000000000004"), "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("fa40d77c-715e-4440-8342-76e9eb3a537d"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, new Guid("00000000-0000-0000-0000-000000000003"), "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000") }
                });

            migrationBuilder.InsertData(
                table: "AppUserRole",
                columns: new[] { "Id", "CreatedAt", "CreatedBy", "DisplayOrder", "IsActived", "IsDelete", "Remarks", "RoleId", "UpdatedAt", "UpdatedBy", "UserId" },
                values: new object[] { new Guid("a419d959-5a16-4327-b652-0ffeb6725e9b"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), 0, true, false, "", new Guid("00000000-0000-0000-0000-000000000002"), new DateTime(2023, 10, 1, 0, 0, 0, 0, DateTimeKind.Utc), new Guid("00000000-0000-0000-0000-000000000000"), new Guid("00000000-0000-0000-0000-000000000001") });
        }
    }
}
